package de.syfy.project.utils;

/**
 * Spezielles Tupel... soll vergleichbar sein String-Value-Tupel
 * @author felixspielmann
 */
public class SVTupel implements Comparable<SVTupel> {
    
    String s;
    int i;

    public SVTupel(String s, int i) {
        this.s = s;
        this.i = i;
    }

    public int getI() {
        return i;
    }

    public String getS() {
        return s;
    }
    
    
    
    @Override
    public int compareTo(SVTupel t) {
        int ret;
        if(this.i< t.i){
            ret = -1;
        }else if(this.i == t.i){
            ret = 0;
        }else{
            ret = 1;
        }
        return ret;
    }

    @Override
    public String toString(){
        return " "+s + ": \t"+ i;
    }
    
}
